package com.mars.boss.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class SchedController {
    @Autowired
    private RedisTemplate redisTemplate;

    @Async
    @Scheduled(cron = "59 59 23 * * ?")
    public void test(){
        redisTemplate.opsForSet().members("");

    }

}
